package cn.z2huo.knowledge.collection.queue;

import java.util.LinkedList;
import java.util.Queue;

/**
 * <p>
 *
 * @author z2huo
 */
class QueueTest {

    public static void main(String[] args) {

        Queue<String> queue = new LinkedList<>();

        queue.offer("a");
        queue.offer("b");
        queue.offer("c");
        queue.offer("d");
        queue.add("e");

        System.out.println(queue.size());
        System.out.println(queue.peek());
        System.out.println(queue.size());
        System.out.println(queue.poll());
        System.out.println(queue.size());
        System.out.println(queue.element());
        System.out.println(queue.size());
        System.out.println(queue.remove());
        System.out.println(queue.size());
    }

}
